#################################
# Install packages necessary for analysis
#
# Replication Material for:
# Continuity or Change? (In)direct Rule in British and French Colonial Africa
# 
# Carl Mueller-Crepon, 2020
# International Organization
#
# File Description:
# Installs all necessry packages if not installed already
#
# Called from indrule_analysis_all.R 
#
################################

# Install all necessary packages for replication
## Only installs package if not already installed locally
pcks <- c("lfe",    "stargazer",  "plyr",   "ggplot2",  "viridisLite",  
          "maptools",   "rgeos",   "raster",   "MASS",     "lme4",
          "rgeos",     "lfe",    "survival",  "survminer",    "stargazer",
          "plyr",  "ggplot2",  "raster",   "rgdal",   "countrycode",
          "digest",    "cshapes",       "rgeos",      "raster",     "MASS", 
          "lme4",  "GGally",  "car", "reshape")
for(p in pcks){
  if(!p %in% installed.packages()[,"Package"]){
    print(p)
    install.packages(p)
  }
}
